﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using System.Windows.Controls;

namespace Dynamic_UI_Framework
{
    [Export(typeof(PartAdapter))]
    [PartCreationPolicy(CreationPolicy.Shared)]
    public class PartAdapter : AdapterBase<IPart, UserControl>
    {
        public override IPart DefaultBuild(string name)
        {
            throw new NotImplementedException();
        }

        protected override void Adapt(IPart codon, UserControl target)
        {
            codon.Target = target;   
        }

        protected override IPart Create()
        {
            return new Part();
        }
    }
}
